package com.fuxin.hanfu.service;

import com.fuxin.hanfu.domain.Item;
import com.fuxin.hanfu.mapper.ItemMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ItemService {
    @Resource
    private ItemMapper itemMapper;

    public List<Item> findList(Item item){
        return itemMapper.findList(item);
    }
    //推荐查询
    public List<Item> findRecommend(Item item) {
        return itemMapper.findRecommend(item);
    }
    public Item findById(Integer id){
        return itemMapper.findById(id);
    }
    public Integer insert(Item item) {
        return itemMapper.insert(item);
    }

    public Integer update(Item item) {
        return itemMapper.update(item);
    }

    public Integer delete(Integer id) {
        return  itemMapper.delete(id);
    }


}
